package com.listeningframework.boot.autoconfigure.orm.jpa.search.filters;

import java.util.Arrays;

import com.listeningframework.boot.autoconfigure.orm.jpa.search.Operations;

public class IntegerSearchFilter extends SearchFilter<Integer> {

    public IntegerSearchFilter() {

    }

    public IntegerSearchFilter(String name, Operations operations, Integer... values) {
        setName(name);
        setOperations(operations);
        if (values != null && values.length > 0) {
            getValue().addAll(Arrays.asList(values));
        }
    }

    @Override
    public Class<Integer> getType() {
        return Integer.class;
    }
}
